import 'package:flutter_learn_vi/src/bean/bean_mine.dart';

/// 创建人： Created by zhaolong
/// 创建时间：Created by  on 2020/7/23.
///
/// 创建人： Created by zhaolong
/// 创建时间：Created by  on 2020/9/25.
///
/// gongzhonghao biglead
/// https://study.163.com/instructor/1021406098.htm
/// https://blog.csdn.net/zl18603543572
/// https://www.toutiao.com/c/user/token/MS4wLjABAAAAYMrKikomuQJ4d-cPaeBqtAK2cQY697Pv9xIyyDhtwIM/

class BlocBean {
  int id;
  String blocName;
  String blocRemark;
  String blocCreatTime;

  List<MineBean> mineEntityList;

  //煤矿企业
  List<MineBean> mineList;

  //非煤企业
  List<MineBean> noMineList;

  //集团
  List<MineBean> jiTuanList;

  BlocBean.fromJson(Map<String, dynamic> map) {
    this.id = map["id"];
    this.blocName = map["blocName"];
    this.blocRemark = map["blocRemark"];
    this.blocCreatTime = map["blocCreatTime"];

    List list = map["mineEntityList"];
    if (list != null) {
      List<MineBean> taglist = [];
      list.forEach((element) {
        taglist.add(
          MineBean.fromJson(element),
        );
      });
      this.mineEntityList = taglist;
    }
  }
}
